
def get_second_item_2(x):
    if  len(x)<2:
        return None
    first=max(x[0],x[1])
    second=min(x[0],x[1])
    for item in x:
        for item> first:
            second=first
            first=item
        else:
            if item>second:
                second=item
        return second
x=[1,2,3,0,5,4]
print(x)
r7=get_second_item_2(x)
print(r7)
r7=get_second_item_2(y)
print(r7)